import java.io.FileWriter;
import java.io.IOException;

/**
 * @License: (C) Copyright 2013-2022
 * @Contact: abcque@outlook.com
 * @IDE: IntelliJ IDEA
 * @Encoding: utf-8
 * @Project: st2214st2215
 * @Package: PACKAGE_NAME
 * @File: WriteFile.java
 * @Time: 2023/4/25 15:39
 * @Author: abcque
 * @Description:
 * @Modifier:
 * @ModifyDate:
 * @ModifyRemark:
 */
public class WriteFile {
    public static void main(String[] args) {
        try {
            FileWriter writer = new FileWriter("stream.txt");

            writer.write('a');

            char[] temp = {'b','c','d','e','f','g'};
            writer.write(temp);
            writer.close();
        } catch (IOException e) {
            e.printStackTrace();
        }
    }
}
